<?php
  session_start();
  header("Content-type:text/html;charset=utf-8");
  if(empty($_SESSION["admin"])){
	  die("<script>alert('登录失败或超时,请重新登录!');location.href='login.php';</script>");
  }else{
	  die("<script>location.href='admin_index.php';</script>");
  }
?>